#include "ListFile.h"


ListFile::ListFile(void)
{
}

void ListFile::addFiles(std::string location){
}

void ListFile::addFiles(std::string locations[] ,int count){
	for(int i=0;i<count;i++){
		addFiles(locations[i]);
	}
}

FileList ListFile::searchName(std::string name){
	FileList ret;
	for(FileList::iterator it;it!=list.end();it++){
		if(it->getFileName().compare(name)==0){
			ret.push_back(*it);
		}
	}
	return ret;
}

FileList ListFile::searchType(File::TypeFile type){
	FileList ret;
	for(FileList::iterator it;it!=list.end();it++){
		if(it->type()==type){
			ret.push_back(*it);
		}
	}
	return ret;
} 

FileList ListFile::searchVName(std::string vname){
	FileList ret;
	for(FileList::iterator it;it!=list.end();it++){
		if(it->type()!=File::OTHER || it->type()!=File::SUBTITLE){
			Movie * derFile = std::static_cast<Movie*>(it); 
			/*if(derFile->get.compare(name)==0){
				ret.push_back(*it);
			}*/
		}
	}
	return ret;
}

FileList ListFile::searchLabel(std::string){
}

FileList ListFile::searchTag(std::string){
}

FileList ListFile::searchTag(std::string,std::string){
}

void ListFile::sortASC(){
}

void ListFile::sortDESC(){
}

ListFile::~ListFile(void)
{
}
